package com.linhui.springbootinit.service.impl.inner;

import com.linhui.apicommon.service.InnerUserInterfaceInfoService;
import com.linhui.apicommon.service.InnerUserService;
import com.linhui.springbootinit.service.UserInterfaceInfoService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

/**
 * @author: 临晖
 * @since: 2024-05-06
 */
@DubboService
public class InnerUserInterfaceInfoServiceImpl implements InnerUserInterfaceInfoService {


    @Resource
    private UserInterfaceInfoService userInterfaceInfoService;

    /**
     *
     * 计算调用次数
     *
     * @param interfaceInfoId
     * @param userId
     * @return
     */
    @Override
    public boolean invokeCount(long interfaceInfoId, long userId) {
        return userInterfaceInfoService.invokeCount(interfaceInfoId, userId);
    }
}
